package cacco.jp.mld;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cacco.jp.mld.panel.service.UserService;


@Controller
public class HomePageController {
	
	@Autowired
    private UserService userService;
	
	@RequestMapping(value = "/home", method = RequestMethod.GET)
    public String homepage(ModelMap model) {
		model.addAttribute("list_url", userService.getAll());
        return "home_page";
    }
	@RequestMapping(value = "/", method = RequestMethod.GET)
    public String home(ModelMap model) {
		model.addAttribute("list_url", userService.getAll());
        return "home_page";
    }
   
}
